package com.vehicle.mapper;

import com.vehicle.pojo.RepairRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairRecordMapper {

    //查询所有维修记录
    List <RepairRecord> findAllRepairRecord(@Param("carid") Integer carid);

    //增加维修记录
    void addRepairRecord(RepairRecord repairRecord);

    //批量删除
    void delManyRepairRecord(@Param("idArray") String idArray);

    //删除维修记录
    void delRepairRecord(@Param("repairid") Integer repairid);

    //根据id查询维修记录
    RepairRecord findRepairRecordById(@Param("repairid") Integer repairid);

    //根据Id修改维修记录
    void updateRepairRecord(RepairRecord repairRecord);

    //取车信息的修改
    void bringCar(RepairRecord repairRecord);
}
